package com.wiscom.portal.demo.controller;

import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;

import org.springframework.web.portlet.mvc.AbstractController;

import com.wiscom.portal.demo.service.JcService;

public class JcRemoveController extends AbstractController{

	private JcService jcService;

	
	/**
	 * 处理来自<portlet:actionURL>的请求
	 * author:yyu date:2011-7-19
	 */
	@Override
	protected void handleActionRequestInternal(ActionRequest request, ActionResponse response) throws Exception {
		String jcdm = request.getParameter("jcdm");
		jcService.deleteJc(jcdm); 					   //删除
		response.setRenderParameter("action", "query");//完成后执行其他控制器
	}
	
	public void setJcService(JcService jcService) {
		this.jcService = jcService;
	}
	
	
	
	
}
